<template>
  <Layout class="YT_MAIN H100">
    <div class="YT_SCROLL_V YT_CONTENT H100 ivu-layout-content">
      <section class="YT_VIEW YT_LAYOUT_W1100_C2 W1100">
        <row type="flex" align="middle" class="YT_BREADCRUMB">
          <Icon type="ios-contact" class="YT_SHADOW_BTN ivu-btn-primary" />
          <div>
            <h3>员工部门</h3>
            <Breadcrumb style="font-size: 12px;">
              <BreadcrumbItem to="/">首页</BreadcrumbItem>
              <BreadcrumbItem>账户</BreadcrumbItem>
              <BreadcrumbItem>员工部门</BreadcrumbItem>
            </Breadcrumb>
          </div>
        </row>
        <section class="MAIN">
          <aside class="YT_ASIDE">
            <Menu active-name="1">
              <MenuItem name="1" to="/account/account-index/staff-management">
                  <Icon type="ios-contact" />
                  员工部门
              </MenuItem>
              <!-- <MenuItem name="2" to="/account/account-index/channel">
                  <Icon type="ios-globe-outline" />
                  渠道设置
              </MenuItem>
              <MenuItem name="3">
                  <Icon type="ios-camera-outline" />
                  拍摄类型
              </MenuItem>
              <MenuItem name="4">
                  <Icon type="ios-card" />
                  费用中心
              </MenuItem>
              <MenuItem name="5">
                  <Icon type="md-pricetag" />
                  标签管理
              </MenuItem> -->
            </Menu>
          </aside>
          <router-view></router-view>
        </section>
      </section>
    </div>
  </Layout>
</template>

<script>
  import path from "path";
  import { isExternal } from "@lime-util/util";
  export default {
    methods: {
      resolvePath(routePath, rootPath) {
        let basePath = rootPath;
        if (isExternal(basePath)) {
          return basePath;
        }
        if (isExternal(rootPath)) {
          return rootPath;
        }
        // 修复多级菜单下，如果包含子级的菜单多重复拼加当前routePath的问题
        basePath = basePath.replace(routePath, "");
        return path.resolve(basePath, routePath);
      },
    }
  }
</script>

<style lang="less" scoped>

</style>
